<template>
  <div class="grassAI-content-container">
    <!-- 文本 -->
    <GText v-if="item.type == 'text'" :content="item.content" />
    <!-- 图片 -->
    <GImage v-else-if="item.type == 'image'" :content="item.content" />
  </div>
</template>

<script>
export default {
  props: {
    item: Object,
  },
  components: {
    GText: () => import("./components/text.vue"), // 文本
    GImage: () => import("./components/image.vue"), // 图片
  },
  data() {
    return {}
  }
};
</script>

<style lang="scss" scoped>
.grassAI-content-container {
  width: 100%;
  height: 100%;
}
</style>